void main() {
  checkVersion();
}

Future checkVersion() async {
  var version = await lookUpVersion();
  print(version);
  // Do something with version
}

// 同步函数
String lookUpVersion() => '1.0.0';

// 异步函数
//Future<String> lookUpVersion() async => '1.0.0';